/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MCQgui.java
 *
 * Created on May 14, 2011, 11:00:41 PM
 */

package LAB;

/**
 *
 * @author thato
 */
public class MCQview extends javax.swing.JFrame {

    /** Creates new form MCQgui */
    public MCQview() {
        initComponents2();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        headingPanel = new javax.swing.JDesktopPane();
        questionLabel = new javax.swing.JLabel();
        questionNumberLabel = new javax.swing.JLabel();
        questionOfLabel = new javax.swing.JLabel();
        totalQuestionLabel = new javax.swing.JLabel();
        questionPanel = new javax.swing.JScrollPane();
        questionTextArea = new javax.swing.JTextArea();
        answerPanel = new javax.swing.JPanel();
        answerALabel = new javax.swing.JLabel();
        answerAButton = new javax.swing.JRadioButton();
        answerBLabel = new javax.swing.JLabel();
        answerBButton = new javax.swing.JRadioButton();
        answerCLabel = new javax.swing.JLabel();
        answerCButton = new javax.swing.JRadioButton();
        answerDLabel = new javax.swing.JLabel();
        answerDButton = new javax.swing.JRadioButton();
        buttomButtonPanel = new javax.swing.JPanel();
        previousButton = new javax.swing.JButton();
        nextButton = new javax.swing.JButton();
        finishedButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        headingPanel.setBackground(new java.awt.Color(3, 125, 148));

        questionLabel.setText("Question");
        questionLabel.setBounds(130, 0, 70, 18);
        headingPanel.add(questionLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        questionNumberLabel.setText("1");
        questionNumberLabel.setBounds(200, 0, 20, 18);
        headingPanel.add(questionNumberLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        questionOfLabel.setText("of");
        questionOfLabel.setBounds(215, 0, 20, 20);
        headingPanel.add(questionOfLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        totalQuestionLabel.setText("20");
        totalQuestionLabel.setBounds(240, 0, 18, 18);
        headingPanel.add(totalQuestionLabel, javax.swing.JLayeredPane.DEFAULT_LAYER);

        questionTextArea.setColumns(20);
        questionTextArea.setRows(5);
        questionTextArea.setText("What is the largest continent in the world?");
        questionPanel.setViewportView(questionTextArea);

        answerALabel.setText("(A)");

        answerAButton.setText("Africa");

        answerBLabel.setText("(B)");

        answerBButton.setText("Europe");

        answerCLabel.setText("(C)");

        answerCButton.setText("USA");

        answerDLabel.setText("(D)");

        answerDButton.setText("Asia");

        previousButton.setText("Previous");

        nextButton.setText("Next");

        finishedButton.setText("Finished");

        javax.swing.GroupLayout buttomButtonPanelLayout = new javax.swing.GroupLayout(buttomButtonPanel);
        buttomButtonPanel.setLayout(buttomButtonPanelLayout);
        buttomButtonPanelLayout.setHorizontalGroup(
            buttomButtonPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(buttomButtonPanelLayout.createSequentialGroup()
                .addComponent(previousButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(nextButton)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 196, Short.MAX_VALUE)
                .addComponent(finishedButton)
                .addContainerGap())
        );
        buttomButtonPanelLayout.setVerticalGroup(
            buttomButtonPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttomButtonPanelLayout.createSequentialGroup()
                .addContainerGap(17, Short.MAX_VALUE)
                .addGroup(buttomButtonPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(previousButton)
                    .addComponent(nextButton)
                    .addComponent(finishedButton))
                .addContainerGap())
        );

        javax.swing.GroupLayout answerPanelLayout = new javax.swing.GroupLayout(answerPanel);
        answerPanel.setLayout(answerPanelLayout);
        answerPanelLayout.setHorizontalGroup(
            answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(answerPanelLayout.createSequentialGroup()
                .addGroup(answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(answerPanelLayout.createSequentialGroup()
                        .addGroup(answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(answerALabel)
                            .addComponent(answerBLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(answerBButton)
                            .addComponent(answerAButton)))
                    .addGroup(answerPanelLayout.createSequentialGroup()
                        .addComponent(answerCLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(answerCButton))
                    .addGroup(answerPanelLayout.createSequentialGroup()
                        .addComponent(answerDLabel)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(answerDButton)))
                .addContainerGap(291, Short.MAX_VALUE))
            .addComponent(buttomButtonPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        answerPanelLayout.setVerticalGroup(
            answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(answerPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(answerALabel)
                    .addComponent(answerAButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(answerBLabel)
                    .addComponent(answerBButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(answerCLabel)
                    .addComponent(answerCButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(answerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(answerDLabel)
                    .addComponent(answerDButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttomButtonPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(41, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(headingPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
            .addComponent(questionPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
            .addComponent(answerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(headingPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(questionPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(answerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(24, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>

     private void initComponents2() {

initComponents();
    }// </editor-fold>


    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MCQview().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JRadioButton answerAButton;
    private javax.swing.JLabel answerALabel;
    private javax.swing.JRadioButton answerBButton;
    private javax.swing.JLabel answerBLabel;
    private javax.swing.JRadioButton answerCButton;
    private javax.swing.JLabel answerCLabel;
    private javax.swing.JRadioButton answerDButton;
    private javax.swing.JLabel answerDLabel;
    private javax.swing.JPanel answerPanel;
    private javax.swing.JPanel buttomButtonPanel;
    private javax.swing.JButton finishedButton;
    private javax.swing.JDesktopPane headingPanel;
    private javax.swing.JButton nextButton;
    private javax.swing.JButton previousButton;
    private javax.swing.JLabel questionLabel;
    private javax.swing.JLabel questionNumberLabel;
    private javax.swing.JLabel questionOfLabel;
    private javax.swing.JScrollPane questionPanel;
    private javax.swing.JTextArea questionTextArea;
    private javax.swing.JLabel totalQuestionLabel;
    // End of variables declaration

}

